package com.kma.ncpractice2013.model;

import java.sql.Date;

/**
 *
 * @author Illya
 */
public class PromoCode
{
    private int id;

    private String code;
	private Date startDate;
	private Date expirationDate;
	private int used;
	private int discount;

    public PromoCode()
    {

    }

    public PromoCode(int id, int managerId, int promocodeTypeId, String code, Date startDate, Date expirationDate, int discount)
    {
        this.id = id;
        this.expirationDate = expirationDate;
	    this.discount = discount;
	    this.used = 0;
	    this.startDate = startDate;
        this.code = code;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }





    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

	public int getDiscount()
	{
		return discount;
	}

	public void setDiscount(int discount)
	{
		this.discount = discount;
	}

	public int getUsed()
	{
		return used;
	}

	public void setUsed(int used)
	{
		this.used = used;
	}

	public Date getExpirationDate()
	{
		return expirationDate;
	}

	public void setExpirationDate(Date expirationDate)
	{
		this.expirationDate = expirationDate;
	}

	public Date getStartDate()
	{
		return startDate;
	}

	public void setStartDate(Date startDate)
	{
		this.startDate = startDate;
	}
}
